package lesson.grade;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeDao {

        public void addGrade(@Param("name") String name);

        public boolean checkExist(@Param("exceptId") Integer exceptId, @Param("name") String name);

        public List<Grade> list(@Param("keywords") String keywords);

        public void delGrade(Integer id);

        Grade getById(Integer id);

        void updateGrade(@Param("name") String name, @Param("id")Integer id);
}
